package com.jack.cms.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "spring.profiles")
public class ProfileProperties {
	private static final String PROD = "prod";
	private String active;

	public String getActive() {
		return active;
	}

	public void setActive(String active) {
		this.active = active;
	}

	public boolean isProd() {
		return PROD.equals(active);
	}

	
	
}
